package com.hilihili.mapper;



import com.hilihili.domain.dto.FavoritesVideoDTO;
import com.hilihili.domain.entity.FavoritesVideoList;
import lombok.Lombok;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FavoritesVideoListMapper
{
    public List<FavoritesVideoDTO> selectList(FavoritesVideoList favoritesVideoList);

    public int insertList(FavoritesVideoList favoritesVideoList);

    public int selectCount(Long favoritesId);

    public List<FavoritesVideoList> selectListByUserIdAndVideoId(@Param("userId") Long userId, @Param("videoId")Long videoId);

    public void insertBatch(@Param("favoritesList")List<FavoritesVideoList> favoritesList);

    //    通过list集合实现批量删除
    public void deleteByIds(@Param("ids") List<Long> ids,@Param("videoId")Long videoId,@Param("userId")Long userId);
}
